package com.czy.seed.mvc.home.controller;

import com.czy.seed.mvc.home.entity.WarnInfo;
import com.czy.seed.mvc.home.service.WarnInfoService;
import com.czy.seed.mvc.util.NotePort;
import com.czy.seed.mvc.util.PrincipalUtil;
import com.czy.seed.mvc.util.Res;
import com.czy.seed.mvc.util.SystemProperties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.*;

@RestController
@RequestMapping("/home/dataCache")
public class DataCacheController {
    public static Logger logger = LoggerFactory.getLogger(DataCacheController.class);


    @RequestMapping("/selectDataCache")
    public Res selectStatistics() {
        try{
            PrincipalUtil.getLoginUser();
        }catch (Exception e){
            logger.warn("没有可以使的用户信息");
            return Res.error();
        }
        return Res.ok();
    }


}
